function notFoundHandler(req, res, _next) {
  res.status(404).json({
    error: 'not_found',
    message: `Route ${req.method} ${req.originalUrl} not found`
  });
}

module.exports = { notFoundHandler };
